import request from '@/utils/request'

// 算法基本信息查询
export const GetAlgorithmDetailService = (id) =>
  request.get(`/alg/query?nodeId=${id}`)

export const GetModelsService = () => request.get('/alg/queryAlgs')

// 修改算法信息
export const AlgUpdateService = (data) => request.post('/alg/update', data)

export const AlgUploadService = (formData) =>
  request.post('/alg/uploadModel', formData)

export const AlgSelectService = ({ model, algId }) =>
  request.post(`/alg/select?model=${model}&algId=${algId}`)
